cc.Class({

    extends: cc.Component,

    properties: {
        
        events:[cc.Component.EventHandler],
    },

    /**
     * 触发事件
     */
    emit(){

        for (let i = 0; i < this.events.length; i++) {

            let eventHandler =  this.events[i];

            eventHandler.emit([]);
        }
    },
});
